#!/usr/bin/env node

const Radio   = require('./04-radio.js');
const log     = console.log;
const station = {
        'freq': '100.7',
        'name': 'music Radio'
};

let radio = new Radio(station);

radio.on('play', (station) => {
  log('FM %s %s is playing!', station.freq, station.name);
});

radio.on('stop', (station) => {
  log('FM %s %s is stop!', station.freq, station.name);
});

